package com.cskaoyan.service.mall;

import com.cskaoyan.bean.CommonData;
import com.cskaoyan.bean.vo.mall.RegionListInfo;
import com.cskaoyan.mapper.MarketRegionMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author Ajun de BBC
 * @Date 2022/7/20 15:39
 * @Version 1.5
 */

@Service
public class RegionServiceImpl implements RegionService {

    @Autowired
    MarketRegionMapper marketRegionMapper;

    @Override
    public CommonData<RegionListInfo> regionListSelectAll() {
        List<RegionListInfo> regionListInfo = marketRegionMapper.selectAllRegion();
        return  new CommonData<RegionListInfo>(1,1,null,1,regionListInfo);
    }
}
